package com.perfect.interceptor;

import feign.RequestInterceptor;
import feign.RequestTemplate;

/**
 * 自定义 feign 请求拦截器
 */
public class CustomRequestInterceptor implements RequestInterceptor {
    @Override
    public void apply(RequestTemplate template) {


        /**
         * key 只能是英文，中文会报错
         */
        template.header("aaaaa", "哈哈哈哈");
    }
}
